package com.njtcedu.microblog.website.user.web;

import java.util.Map;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.njtcedu.microblog.website.content.service.ContentService;
import com.njtcedu.microblog.website.user.service.WebSiteUserService;

@Controller
public class WebSiteUserController {
	
	@Inject
	private WebSiteUserService webSiteUserService;
	
	@Inject
	private ContentService contentService;
	
	@RequestMapping(value = "/user/index", method = RequestMethod.GET)
	public String userIndexPage(HttpServletRequest request, Map<String, Object> map) {
		map.put("contentsResponse", contentService.getAllContents());
		return "user_index";
	}
	
}
